import request from '@/utils/request'

/**
 * 接口文档地址：http://8.134.12.89:9003/shanhaiqifu/doc.html
 */
// 企业分页查询
export function getList(data) {
  return request({
    url: '/sys/pc/platformManage/taCompanyInfoWebController/getCompanyList',
    method: 'post',
    data
  })
}
// 新增/修改企业
export function save(data) {
  return request({
    url: '/sys/pc/platformManage/taCompanyInfoWebController/saveOrUpdateCompany',
    method: 'post',
    data
  })
}
// 推荐分销商下拉框
export function selectDwonDistributor() {
  return request({
    url: '/sys/pc/platformManage/taCompanyInfoWebController/selectDwonDistributor',
    method: 'get'
  })
}
// 根据签约主体模糊查询所有开票类目
export function getCompanyListBycontractName(params) {
  return request({
    url: '/sys/pc/platformManage/taCompanyInfoWebController/getCompanyListBycontractName',
    method: 'get',
    params
  })
}
// 企业获取详情
export function getInvoiceDetail(params) {
  return request({
    url: '/sys/pc/platformManage/taCompanyInfoWebController/getInvoiceDetail',
    method: 'get',
    params
  })
}
// 删除企业
export function deleteTaCompany(data) {
  return request({
    url: '/sys/pc/platformManage/taCompanyInfoWebController/deleteTaCompany',
    method: 'POST',
    data
  })
}
// 开票信息分页查询
export function getInvoiceList(data) {
  return request({
    url: '/sys/pc/invoiceClass/getInvoiceList',
    method: 'POST',
    data
  })
}
// 新增/修改开票类目
export function saveOrUpdateInvoice(data) {
  return request({
    url: '/sys/pc/invoiceClass/saveOrUpdateInvoice',
    method: 'POST',
    data
  })
}
// 删除开票类目
export function deleteTaInvoice(data) {
  return request({
    url: '/sys/pc/invoiceClass/deleteTaInvoice',
    method: 'POST',
    data
  })
}
